home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / file_mgt / file_age / checkc2.bat next >
Encoding:
DOS Batch File  |  1995-05-03  |  649 b   |  15 lines

  1. @echo off
  2.  
  3. :This batch file uses the FILEAGE program to tell whether the 
  4. :Connect2 NETMGR.QUE file has been updated in the last 90 minutes or
  5. :so.  I keep the Connect2 system polling a lot so if it
  6. :hasn't then the Mail Gateway is locked up.  If so we need to
  7. :bark at the Supervisor to reset the system. 
  8.  
  9. :I don't know if this works on Novell MHS or GMHS.  It all depends on
  10. :whether it has a NETMGR.QUE file (I don't recall if it uses this file).
  11. :You might have to check for another file.
  12.  
  13. if (%1)==() %0 SUPERVISOR
  14. fileage %MV%MHS\MAIL\PUBLIC\NETMGR.QUE
  15. if errorlevel 90 SEND "E-Mail Gateway is off-line,  Please Reset It!" TO %1